/*
 * @Author: your name
 * @Date: 2020-03-26 09:41:08
 * @LastEditTime: 2020-03-26 09:41:10
 * @LastEditors: Please set LastEditors
 * @Description: 隔壁王叔叔
 */

// 登录
export const getLogin = "http://www.haisirui.xin/index/Apprentice/getlogin.html"

export function ajaxFun(url, param, fun) {
    window.api.ajax({
        url: url,
        method: param.type,
        headers: {
            'X-Requested-With': 'XMLHttpRequest'
        },
        dataType: 'json',
        returnAll: false,
        async: false,
        data: {
            values: param.data
        }
    }, fun)
}